package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * mq信息对象 sys_mq_message
 * 
 * @author ruoyi
 * @date 2023-04-01
 */
public class SysMqMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 是否消费 0-未消费 1-消费成功 2-消费失败 */
    @Excel(name = "是否消费 0-未消费 1-消费成功 2-消费失败")
    private Integer status;

    /** 消息类型 */
    @Excel(name = "消息类型")
    private String messageType;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String messageBody;

    /** 拓展字段 */
    @Excel(name = "拓展字段")
    private String extData;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setMessageType(String messageType) 
    {
        this.messageType = messageType;
    }

    public String getMessageType() 
    {
        return messageType;
    }
    public void setMessageBody(String messageBody) 
    {
        this.messageBody = messageBody;
    }

    public String getMessageBody() 
    {
        return messageBody;
    }
    public void setExtData(String extData) 
    {
        this.extData = extData;
    }

    public String getExtData() 
    {
        return extData;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("status", getStatus())
            .append("messageType", getMessageType())
            .append("messageBody", getMessageBody())
            .append("extData", getExtData())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
